<?php

namespace App\Models\Index;

use Illuminate\Database\Eloquent\Model;

class LivePlatformList extends Model
{
    public $table = 'live_platform_list';
    public $timestamps = false;

    #根据分页获取平台列表
    public static function getPlatformByPage()
    {
        $data = self::query()->get()->toArray();
        if (empty($data)){
            return [];
        }else{
            return $data;
        }
    }
}
